<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<form id="pagerForm" method="post" action="${base}/core/appcode/list.do"  onsubmit="return ${targetType}Search(this);" >
 	<input type="hidden" name="targetType" value="${targetType}">
	<input type="hidden" name="targetId" value="${targetId}">
   <input type="hidden" name="pageNum" value="${page.number}" />
	<input type="hidden" name="numPerPage" value="${page.size}" />
	<input type="hidden" name="orderField" id="orderField" value="${w:firstOrder(page.sort).property}" /> 
	<input type="hidden" name="orderDirection" id="orderDirection" value="${w:firstOrder(page.sort).direction}" />
<div class="pageHeader">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					类型：<input type="text" name="filter_LIKE_type"  value="${LIKE_type}"/>
				</td>
			</tr>
		</table>
		<div class="subBar" style="width:220px;">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
			</ul>
		</div>
	</div>
	 
</div>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base}/core/appcode/input.do?targetType=${targetType}&targetId=${targetId}" target="navTab"  titile="码表信息"><span>新增</span></a></li>
			<li><a class="delete" href="${base}/core/appcode/delete.do?targetType=${targetType}&targetId=${targetId}&id={sid}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="${base}/core/appcode/input.do?targetType=${targetType}&targetId=${targetId}&id={sid}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	
	<table class="table" width="100%" layoutH="115">
		<thead>
			<tr>
				<th width="50">序号</th>
				<th>类型</th>
				<th>名称</th>
				<th>值类型</th>
				<th>是否可编辑</th>
					<th>码表</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach var="item" items="${w:it(page)}" varStatus="status">
			<tr target="sid" rel="${item.id}">
				<td>${page.number*page.size+status.count}</td>
		<td>${item.type}</td>
		<td>${item.name}</td>
		<td><w:code type="codetype" key="${item.valueType}"/></td>
		<td> <w:code type="yesno" key="${item.editable}"/></td>
		<td><a class="btnLook"  href="${base}/core/appcode/codelist.do?id=${item.id}&targetType=dialog&targetId=${item.id}"  target="dialog" rel="${item.id}" >  码表 </a></td>
			</tr>
			</c:forEach>
					</tbody>
	</table>
 
<w:page page="${page}"></w:page>
</div>